getSelection.js (295B)
1 var Share = function() {}; 2 3 Share.prototype = { 4 run: function(arguments) { 5 arguments.completionFunction({"URL": document.URL, "selectedText": document.getSelection().toString()}); 6 }, 7 finalize: function(arguments) { 8 // alert shared! 9 } 10 }; 11 12 var ExtensionPreprocessingJS = new Share